<template>
  <div>
    <Heads :title="title"></Heads>
    <div v-for="(item,i) in list" :key="i" class="hhh">
      <van-row type="flex" justify="center">
        <van-col span="22">
          <van-image width="100%" fit="fill" height="100%" :src="item.pimg"/>
        </van-col>
      </van-row>
      <van-row type="flex" justify="center">
        <van-col span="22">
          <p class="caimin">{{item.pname}}</p>
          <div class="bo">
           <span>{{item.pprice}}万播放</span>
            <span>{{item.pdesc}}收藏</span>
          </div>
        </van-col>
      </van-row>

    </div>

  </div>
</template>

<script>
  import Heads from '@/components/Heads'
  import axios from 'axios';
	import qs from 'Qs'
  export default {
    name: 'Jiazuo',
    data() {
      return {
        title: '本周佳作',
        list: []
      }
    },
    mounted() {
      axios({
        url: 'http://jx.xuzhixiang.top/ap/api/productlist.php',
        params:{uid:14532}
        
       
      }).then((res)=>{
        console.log(res)
        this.list=res.data.data
      })
			
				// 	axios({
				// 		method:'post',
				// 		url:'http://10.8.158.36:8080/MenuInfoShow.do',
				// 		headers:{'Content-Type':'application/x-www-form-urlencoded'},
				// 		// axios.defaults.headers :{'Content-Type': 'application/json', 'Accept': 'application/json'},
				// 		data:qs.stringify({}),	
				// 	}).then((res)=>{
				// 		console.log(res)
				// 	}).catch(function (error) {
				// 		console.log(error);
				// });
    },
    methods: {
      onClickLeft() {
        this.$router.go(-1)
      }
    },
    components: {
      Heads
    }
  }
</script>

<style scoped="">
	*{padding:0;margin:0}
  .hhh {
    height: 280px;

  }

  .van-ellipsis {
    font-size: 20px;

  }

  .van-icon {
    font-size: 30px;
  }

  .van-row {

    height: 200px;

  }

  .caimin {
    width: 100%;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
  }

  .bo {
    display: flex;
    width: 200px;
    font-size: 12px;
    justify-content: space-between;
    color: #8E8D8D;

  }
</style>
